#pragma once
#include "password_auth.h"
namespace acl
{
namespace mqtt
{
class config
{
public:
	static config &get_instance ()
	{
		static config instance;
		return instance;
	}
	bool need_pass_auth ()
	{
		return is_need_pass_auth;
	}
	password_auth &get_password_auth ()
	{
		return *password_auth_;
	}
	int get_max_connection()
	{
		return -1;
	}
	std::string get_client_prefix ()
	{
		return "mqtt_clientid:";
	}
	int max_subscribe_count ()
	{
		return 128;
	}
private:
	bool is_need_pass_auth = false;
	password_auth *password_auth_;
};
}
}